package com.ai.dmc.index.common.data;

/**
 * 异常编码定义类
 * @author sikong.chen
 *
 */
public interface ErrorCode {

	public interface BusinessError {
		public static final String TEST_ERROR = "1001";
		public static final String LOGIN_NO_USER = "1101";
		public static final String LOGIN_PWD_INVALID = "1102";
		//业务异常编码
		
		public static final String EXISTS_ERROR = "1200";
		public static final String NOT_EXISTS_ERROR = "1201";
		public static final String QUERY_NOTEXISTS_ERROR = "1202";
		public static final String UPDATE_NOTEXISTS_ERROR = "1203";
		public static final String DELETE_NOTEXISTS_ERROR = "1204";
		public static final String NOT_EMPTY_ERROR = "1205";
	}

	public interface SystemError {
		public static final String DB_ERROR = "9001";
		public static final String IO_ERROR = "9101";
		
		public static final String UNKNOW_ERROR = "9999";
	}
}
